package com.example.springbootmybatis.exception;

public enum ResponseEnum {
    SUCCESS(0,"调用成功"),
    ERROR1(-1,"空指针异常"),

    ERROR4(-2,"参数异常"),
    ERROR5(-3,"图书未还不可编辑"),
    ERROR9999(-9,"其他异常");

    private final int returnCode;
    private final String returnMessage;

    ResponseEnum(int returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }

    public int getReturnCode() {
        return returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }
}